import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from './router/index.js'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import '@/assets/css/index.css'
import '@/assets/css/common.css'
import '@/assets/css/iconfont.css'
const app = createApp(App);
app.use(ElementPlus);
app.use(router);
app.mount('#app');

/* function setRem() {


    const baseSize = 16; // 基准大小，可以根据设计稿调整
  
  
    const baseWidth = 1920; // 基准宽度，通常是设计稿的宽度
  
  
    const clientWidth = document.documentElement.clientWidth || window.innerWidth;
  
  
    const fontSize = (clientWidth / baseWidth) * baseSize;
  
  
    document.documentElement.style.fontSize = fontSize + 'px';
  
  
  }
  
  
  // 初始化
  
  
  setRem();
  
  
  // 当窗口大小改变时重新计算
  
  
  window.onresize = function () {
  
  
    setRem();
  
  
  }; */
  
  